package com.she.iiicoursecenter.activity.template;

import com.she.iiicoursecenter.R;
import com.she.iiicoursecenter.iiiApplication;

import android.app.ActivityGroup;
import android.os.Bundle;
import android.view.Menu;
import android.view.MenuInflater;
import android.view.MenuItem;

public class BaseActivityGroup extends ActivityGroup {

	public iiiApplication getApp(){
    	return (iiiApplication) this.getApplication();
    }

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		// TODO Auto-generated method stub
		super.onCreate(savedInstanceState);
	}
	
	@Override
	protected void onRestart() {
		// TODO Auto-generated method stub
		super.onRestart();
	}

	@Override
	protected void onStart() {
		// TODO Auto-generated method stub
		super.onStart();
	}
	
	@Override
	protected void onResume() {
		// TODO Auto-generated method stub
		super.onResume();
	}
	
	@Override
	protected void onPause() {
		// TODO Auto-generated method stub
		super.onPause();
	}

	@Override
	protected void onStop() {
		// TODO Auto-generated method stub
		super.onStop();
	}
	
	@Override
	protected void onDestroy() {
		// TODO Auto-generated method stub
		super.onDestroy();
	}

	@Override
	protected void onSaveInstanceState(Bundle outState) {
		// TODO Auto-generated method stub
		super.onSaveInstanceState(outState);
	}

	
	//---------------------------------------------------------------------------------------------------------------------------//
	// Option menu will not be supported in this version....so do nothing here......
//	@Override
//	public boolean onCreateOptionsMenu(Menu menu) {
//		// TODO Auto-generated method stub
//        MenuInflater inflater = getMenuInflater();
//        inflater.inflate(R.menu.iiimenu, menu);
//        return true;
//	}

    @Override
	public boolean onOptionsItemSelected(MenuItem item) {
		// TODO Auto-generated method stub
		super.onOptionsItemSelected(item);
		
		switch(item.getItemId()){
			case R.id.menu_setting:
				
				break;
				
			case R.id.menu_exit:
				
				break;
				
		}
		
		return true;
	}

	//---------------------------------------------------------------------------------------------------------------------------//
}
